import { ApiCall } from "tsrpc";
import { ReqUser, ResUser } from "../shared/protocols/PtlUser";

export default async function (call: ApiCall<ReqUser, ResUser>) {

    if (call.req.uid !== 1) {
        call.error('User Not Found');
        return;
    }

    call.succ({
        uid: 1,
        name: 'test',
        head: 'test',
        head_bg: 'test'
    });

}